﻿<Window x:Class="CECB.DashSliderExit_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       
    Title="DashSlider_Window"
        Height="300" Width="600" 
        Background="{x:Null}" 
        AllowsTransparency="True" 
        WindowStyle="None"
        WindowStartupLocation="CenterScreen" 
         
        >
    <Window.Resources>
        <Storyboard x:Key="Slidetoright">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.001"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="1.157">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-40"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="502.312"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="76.874">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-40"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="0.685"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.StrokeThickness)" Storyboard.TargetName="rectangle">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="showMe" >
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:3" From="0" To="1"/>
        </Storyboard>

        <Storyboard x:Key="drop">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.02"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.194">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="23.75">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="drop1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="groupBoxSearchTeam">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.02"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.194">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="groupBoxSearchTeam">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="23.75">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Slidetoright}"/>
        </EventTrigger>
    </Window.Triggers>

    <Grid x:Name="LayoutRoot">
        <Rectangle x:Name="rectangle" Margin="0,21.5,138,8" Stroke="Black" RadiusY="18.5" RadiusX="18.5" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
            <Rectangle.Fill>
                <ImageBrush ImageSource="images/roundbg.png"/>
            </Rectangle.Fill>
        </Rectangle>
        <Grid Margin="100,53,138,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="107*" />
                <ColumnDefinition Width="132*" />
                <ColumnDefinition Width="129*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="48*" />
                <RowDefinition Height="119*" />
            </Grid.RowDefinitions>
            <TextBlock FontSize="25" FontStyle="Italic" FontWeight="ExtraBold" Foreground="White" Grid.RowSpan="2" Height="55" HorizontalAlignment="Left" Margin="48,6,0,0" Name="textBlock1" Text="Are you suer want to exit?" VerticalAlignment="Top" Width="338" Grid.ColumnSpan="3" />
            <Button   Grid.Column="1" Grid.Row="1" Height="69" HorizontalAlignment="Left" Margin="26,19,0,0" Name="button1" VerticalAlignment="Top" Width="75">
                <Button.Background>
                    <ImageBrush ImageSource="/CECB;component/images/sliderLogout.png" Stretch="Fill" TileMode="None" />
                </Button.Background>
            </Button>
            <TextBlock Grid.Column="1" Margin="35,84,31,6" Grid.Row="1" FontSize="16" FontStretch="Normal" FontStyle="Italic" FontWeight="Black" Foreground="White">Logout</TextBlock>
            <Button Height="69" HorizontalAlignment="Left" Margin="21,19,0,0" Name="button2" VerticalAlignment="Top" Width="69" Grid.Row="1" Click="button2_Click">

                <Button.Background>
                    <ImageBrush ImageSource="/CECB;component/images/sliderExit.png" Stretch="Fill" TileMode="None" />
                </Button.Background>
            </Button>
            <TextBlock FontSize="16" FontStretch="Normal" FontStyle="Italic" FontWeight="Black" Foreground="White" Grid.Row="1" Margin="33,84,8,6">Exit</TextBlock>
            <Button Height="78" HorizontalAlignment="Left" Margin="31,10,0,0" Name="button3" VerticalAlignment="Top" Width="75" Grid.Column="2" Grid.Row="1">
                <Button.Background>
                    <ImageBrush ImageSource="/CECB;component/images/sliderCancel.png" Stretch="Fill" TileMode="None" />
                </Button.Background>
            </Button>
            <TextBlock FontSize="16" FontStretch="Normal" FontStyle="Italic" FontWeight="Black" Foreground="White" Grid.Row="1" Margin="40,84,23,6" Grid.Column="2">Cancel</TextBlock>
        </Grid>

    </Grid>
</Window>